using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;



public class GameManager : MonoBehaviour
{
    public static GameManager Instance {  get; private set; }
    public Queue<Action> actions = new Queue<Action>();
    private void Start()
    {
        Instance = this;
    }
    private void Update()
    {
        if (actions.Count > 0)
            actions.Dequeue().Invoke();
    }
}
